<template>
    <div class="accountManagement">
        <div ref="preview" id="preview" class="preview"></div>
    </div>
</template>
<script setup name="dwgDetail">
import { onMounted, reactive, ref } from 'vue'
import { Buffer } from 'buffer';
import api from '@/plugins/api/index'
import { initViewer, loadModel } from '@/plugins/viewer.js';
let viewerBody = null
let preview = ref(null)

onMounted(async () => {
    const newUrn = window.sessionStorage.getItem('urn')
    initViewer(document.getElementById('preview')).then(viewer => {
        loadModel(viewer, newUrn);
    });
})

</script>
<style scoped lang="scss">
.accountManagement {
    width: 100%;
    height: 100%;
    position: relative;
}

.preview {
    width: 100%;
    height: 100%;
    position: absolute;
}
</style>